package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Student;
import com.itheima.edu.info.manager.service.StudentService;

import java.util.Scanner;

/**
 * 学生用户交互类
 */
public class OtherStudentController extends BaseStudentController{

    private Scanner sc = new Scanner(System.in);


    //获取学生信息  ctrl+alt+m  抽取方法
    public Student getStudent(String sId) {
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        Student student = new Student(sId,name,age,birthday);

        return student;
    }




}
